home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8294 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: news.iadfw.net!usenet
  2. From: Larry Weiss <lfw@iadfw.net>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Basic I/O help, please
  5. Date: Sat, 02 Mar 1996 18:43:14 -0600
  6. Organization: ...
  7. Message-ID: <3138EB22.70CA@iadfw.net>
  8. References: <4h06lg$b9j@news.aimnet.com>
  9. NNTP-Posting-Host: dal22-10.ppp.iadfw.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14.  
  15. Smothra wrote:
  16.  > 
  17.  > I'm having a little trouble with the mixing and matching of various
  18.  > standard library I/O functions.  In general, the mixture of scanf(),
  19.  > getc() and getch() seem to do me in after a number of function calls.
  20.  > Without responding to the specifics (which I won't post unless someone
  21.  > offers to read 'em over in which case I'll eMail ya), can anyone tell
  22.  > me if there are some genral rules about how to mix and match I/O
  23.  > functions (particularly the I's).  Are there any standard pitfalls of
  24.  > which I should be aware?  The problem seems to be related to
  25.  > encountering an EOF that is at the end of a non-blank line.
  26.  > 
  27.  
  28. We'll need to see some specific code.   One reality of C is that the Standard
  29. library was not designed altogether at one time, or by one designer, so there
  30. may be situations where you just have to learn by rote how to use suites of
  31. calls in conjunction.
  32.